﻿using CloudDcPc.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CloudDcPc
{
    /// <summary>
    /// PostTest1.xaml 的交互逻辑
    /// </summary>
    public partial class PostTest1 : Window
    {
        public PostTest1()
        {
            InitializeComponent();
            PostSubmitter post = new PostSubmitter();
            post.Url = "http://seeker.dice.com/jobsearch/servlet/JobSearch";
            post.PostItems.Add("op", "100");
            post.PostItems.Add("rel_code", "1102");
            post.PostItems.Add("FREE_TEXT", "c# jobs");
            post.PostItems.Add("SEARCH", "");
            post.Type = PostSubmitter.PostTypeEnum.Post;
            string result = post.Post();
            MessageBox.Show(result);
        }
    }
}
